.class public final Lcom/burstly/lib/apptracking/AppTrackingManager;
.super Ljava/lang/Object;
.source "AppTrackingManager.java"

# interfaces
.implements Lcom/burstly/lib/feature/apptracker/IAppTracker;


# static fields
.field private static final LOG:Lcom/burstly/lib/util/LoggerExt; = null

.field private static final SERVICE_URL:Ljava/lang/String; = "http://an.appads.com/Info.svc/UrlSchemeGet/"

.field private static final TAG:Ljava/lang/String; = "InstalledAppTracker"


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 52
    invoke-static {}, Lcom/burstly/lib/util/LoggerExt;->getInstance()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/apptracking/AppTrackingManager;->LOG:Lcom/burstly/lib/util/LoggerExt;

    return-void
.end method

.method public constructor <init>()V
    .locals 0

    .prologue
    .line 42
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method static synthetic access$000(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
    .locals 1
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 42
    invoke-static {p0, p1}, Lcom/burstly/lib/apptracking/AppTrackingManager;->getPubTargetingString(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$100()Lcom/burstly/lib/util/LoggerExt;
    .locals 1

    .prologue
    .line 42
    sget-object v0, Lcom/burstly/lib/apptracking/AppTrackingManager;->LOG:Lcom/burstly/lib/util/LoggerExt;

    return-object v0
.end method

.method private static checkInstalledApps(Landroid/content/Context;Ljava/util/List;)Ljava/util/Map;
    .locals 11
    .parameter "context"
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;)",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Lcom/burstly/lib/apptracking/AppInstallState;",
            ">;"
        }
    .end annotation

    .prologue
    .local p1, requestedApps:Ljava/util/List;,"Ljava/util/List<Ljava/lang/String;>;"
    const/4 v10, 0x1

    const/4 v9, 0x0

    .line 197
    invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v5

    invoke-virtual {v5, v9}, Landroid/content/pm/PackageManager;->getInstalledApplications(I)Ljava/util/List;

    move-result-object v4

    .line 198
    .local v4, installedApps:Ljava/util/List;,"Ljava/util/List<Landroid/content/pm/ApplicationInfo;>;"
    sget-object v5, Lcom/burstly/lib/apptracking/AppTrackingManager;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v6, "InstalledAppTracker"

    const-string v7, "All installed apps: {0}"

    new-array v8, v10, [Ljava/lang/Object;

    aput-object v4, v8, v9

    invoke-virtual {v5, v6, v7, v8}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 199
    new-instance v2, Ljava/util/HashMap;

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v5

    int-to-double v5, v5

    const-wide/high16 v7, 0x3fe8

    div-double/2addr v5, v7

    double-to-int v5, v5

    invoke-direct {v2, v5}, Ljava/util/HashMap;-><init>(I)V

    .line 201
    .local v2, appStates:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Lcom/burstly/lib/apptracking/AppInstallState;>;"
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    .local v3, i$:Ljava/util/Iterator;
    :goto_0
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-eqz v5, :cond_0

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 202
    .local v0, app:Ljava/lang/String;
    sget-object v5, Lcom/burstly/lib/apptracking/AppInstallState;->NOT_INSTALLED:Lcom/burstly/lib/apptracking/AppInstallState;

    invoke-interface {v2, v0, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_0

    .line 204
    .end local v0           #app:Ljava/lang/String;
    :cond_0
    invoke-interface {v4}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :cond_1
    :goto_1
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-eqz v5, :cond_2

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/content/pm/ApplicationInfo;

    .line 205
    .local v1, appInfo:Landroid/content/pm/ApplicationInfo;
    iget-object v5, v1, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;

    invoke-interface {v2, v5}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v5

    if-eqz v5, :cond_1

    .line 206
    iget-object v5, v1, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;

    sget-object v6, Lcom/burstly/lib/apptracking/AppInstallState;->INSTALLED:Lcom/burstly/lib/apptracking/AppInstallState;

    invoke-interface {v2, v5, v6}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_1

    .line 209
    .end local v1           #appInfo:Landroid/content/pm/ApplicationInfo;
    :cond_2
    sget-object v5, Lcom/burstly/lib/apptracking/AppTrackingManager;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v6, "InstalledAppTracker"

    const-string v7, "Detected app states: {0}"

    new-array v8, v10, [Ljava/lang/Object;

    aput-object v2, v8, v9

    invoke-virtual {v5, v6, v7, v8}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 210
    return-object v2
.end method

.method private static createPubTargetingString(Ljava/util/Map;)Ljava/lang/String;
    .locals 8
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Lcom/burstly/lib/apptracking/AppInstallState;",
            ">;)",
            "Ljava/lang/String;"
        }
    .end annotation

    .prologue
    .line 221
    .local p0, appStates:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Lcom/burstly/lib/apptracking/AppInstallState;>;"
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    .line 222
    .local v1, builder:Ljava/lang/StringBuilder;
    invoke-interface {p0}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object v3

    invoke-interface {v3}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v0

    .line 223
    .local v0, appStatesIterator:Ljava/util/Iterator;,"Ljava/util/Iterator<Ljava/util/Map$Entry<Ljava/lang/String;Lcom/burstly/lib/apptracking/AppInstallState;>;>;"
    const/4 v2, 0x0

    .line 224
    .local v2, entry:Ljava/util/Map$Entry;,"Ljava/util/Map$Entry<Ljava/lang/String;Lcom/burstly/lib/apptracking/AppInstallState;>;"
    :cond_0
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_1

    .line 225
    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    .end local v2           #entry:Ljava/util/Map$Entry;,"Ljava/util/Map$Entry<Ljava/lang/String;Lcom/burstly/lib/apptracking/AppInstallState;>;"
    check-cast v2, Ljava/util/Map$Entry;

    .line 226
    .restart local v2       #entry:Ljava/util/Map$Entry;,"Ljava/util/Map$Entry<Ljava/lang/String;Lcom/burstly/lib/apptracking/AppInstallState;>;"
    invoke-interface {v2}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 227
    const/16 v3, 0x3d

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    .line 228
    invoke-interface {v2}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/burstly/lib/apptracking/AppInstallState;

    invoke-virtual {v3}, Lcom/burstly/lib/apptracking/AppInstallState;->getStateValue()I

    move-result v3

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    .line 229
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_0

    .line 230
    const-string v3, ", "

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    goto :goto_0

    .line 233
    :cond_1
    sget-object v3, Lcom/burstly/lib/apptracking/AppTrackingManager;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v4, "InstalledAppTracker"

    const-string v5, "Constructed pub targeting string: {0}"

    const/4 v6, 0x1

    new-array v6, v6, [Ljava/lang/Object;

    const/4 v7, 0x0

    aput-object v1, v6, v7

    invoke-virtual {v3, v4, v5, v6}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 234
    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    return-object v3
.end method

.method private static downloadPackageNames(Ljava/lang/String;)Ljava/util/List;
    .locals 12
    .parameter "orgId"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    .prologue
    .line 142
    :try_start_0
    sget-object v6, Lcom/burstly/lib/apptracking/AppTrackingManager;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v7, "InstalledAppTracker"

    const-string v8, "Downloading package names from server... Service url: {0}. Organization ID: {1}"

    const/4 v9, 0x2

    new-array v9, v9, [Ljava/lang/Object;

    const/4 v10, 0x0

    const-string v11, "http://an.appads.com/Info.svc/UrlSchemeGet/"

    aput-object v11, v9, v10

    const/4 v10, 0x1

    aput-object p0, v9, v10

    invoke-virtual {v6, v7, v8, v9}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 144
    new-instance v5, Ljava/net/URL;

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "http://an.appads.com/Info.svc/UrlSchemeGet/"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-direct {v5, v6}, Ljava/net/URL;-><init>(Ljava/lang/String;)V

    .line 145
    .local v5, url:Ljava/net/URL;
    new-instance v4, Ljava/io/BufferedReader;

    new-instance v6, Ljava/io/InputStreamReader;

    invoke-virtual {v5}, Ljava/net/URL;->openStream()Ljava/io/InputStream;

    move-result-object v7

    invoke-direct {v6, v7}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;)V

    invoke-direct {v4, v6}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V

    .line 148
    .local v4, reader:Ljava/io/BufferedReader;
    const/4 v3, 0x0

    .line 149
    .local v3, line:Ljava/lang/String;
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    .line 150
    .local v1, data:Ljava/lang/StringBuilder;
    :goto_0
    invoke-virtual {v4}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;

    move-result-object v3

    if-eqz v3, :cond_0

    .line 151
    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
    :try_end_0
    .catch Ljava/net/MalformedURLException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1

    goto :goto_0

    .line 159
    .end local v1           #data:Ljava/lang/StringBuilder;
    .end local v3           #line:Ljava/lang/String;
    .end local v4           #reader:Ljava/io/BufferedReader;
    .end local v5           #url:Ljava/net/URL;
    :catch_0
    move-exception v2

    .line 160
    .local v2, e:Ljava/net/MalformedURLException;
    sget-object v6, Lcom/burstly/lib/apptracking/AppTrackingManager;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v7, "InstalledAppTracker"

    invoke-virtual {v6, v7, v2}, Lcom/burstly/lib/util/LoggerExt;->logThrowable(Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 165
    .end local v2           #e:Ljava/net/MalformedURLException;
    :goto_1
    const/4 v6, 0x0

    :goto_2
    return-object v6

    .line 153
    .restart local v1       #data:Ljava/lang/StringBuilder;
    .restart local v3       #line:Ljava/lang/String;
    .restart local v4       #reader:Ljava/io/BufferedReader;
    .restart local v5       #url:Ljava/net/URL;
    :cond_0
    :try_start_1
    invoke-virtual {v4}, Ljava/io/BufferedReader;->close()V

    .line 155
    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 156
    .local v0, content:Ljava/lang/String;
    sget-object v6, Lcom/burstly/lib/apptracking/AppTrackingManager;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v7, "InstalledAppTracker"

    const-string v8, "Received data from server: {0}"

    const/4 v9, 0x1

    new-array v9, v9, [Ljava/lang/Object;

    const/4 v10, 0x0

    aput-object v0, v9, v10

    invoke-virtual {v6, v7, v8, v9}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 157
    invoke-static {v0}, Lcom/burstly/lib/apptracking/AppTrackingManager;->parsePackageNames(Ljava/lang/String;)Ljava/util/List;
    :try_end_1
    .catch Ljava/net/MalformedURLException; {:try_start_1 .. :try_end_1} :catch_0
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1

    move-result-object v6

    goto :goto_2

    .line 162
    .end local v0           #content:Ljava/lang/String;
    .end local v1           #data:Ljava/lang/StringBuilder;
    .end local v3           #line:Ljava/lang/String;
    .end local v4           #reader:Ljava/io/BufferedReader;
    .end local v5           #url:Ljava/net/URL;
    :catch_1
    move-exception v2

    .line 163
    .local v2, e:Ljava/io/IOException;
    sget-object v6, Lcom/burstly/lib/apptracking/AppTrackingManager;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v7, "InstalledAppTracker"

    invoke-virtual {v6, v7, v2}, Lcom/burstly/lib/util/LoggerExt;->logThrowable(Ljava/lang/String;Ljava/lang/Throwable;)V

    goto :goto_1
.end method

.method private static getPubTargetingString(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
    .locals 5
    .parameter "context"
    .parameter "orgId"

    .prologue
    const/4 v4, 0x0

    .line 121
    if-nez p0, :cond_1

    .line 122
    sget-object v1, Lcom/burstly/lib/apptracking/AppTrackingManager;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "InstalledAppTracker"

    const-string v3, "Context is null. Cannot get installed apps."

    new-array v4, v4, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 131
    :cond_0
    :goto_0
    const-string v1, ""

    :goto_1
    return-object v1

    .line 123
    :cond_1
    if-eqz p1, :cond_2

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v1

    if-nez v1, :cond_3

    .line 124
    :cond_2
    sget-object v1, Lcom/burstly/lib/apptracking/AppTrackingManager;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "InstalledAppTracker"

    const-string v3, "Organization ID is null or empty. Cannot get package names from server."

    new-array v4, v4, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_0

    .line 126
    :cond_3
    invoke-static {p1}, Lcom/burstly/lib/apptracking/AppTrackingManager;->downloadPackageNames(Ljava/lang/String;)Ljava/util/List;

    move-result-object v0

    .line 127
    .local v0, packageNames:Ljava/util/List;,"Ljava/util/List<Ljava/lang/String;>;"
    if-eqz v0, :cond_0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v1

    if-lez v1, :cond_0

    .line 128
    invoke-static {p0, v0}, Lcom/burstly/lib/apptracking/AppTrackingManager;->checkInstalledApps(Landroid/content/Context;Ljava/util/List;)Ljava/util/Map;

    move-result-object v1

    invoke-static {v1}, Lcom/burstly/lib/apptracking/AppTrackingManager;->createPubTargetingString(Ljava/util/Map;)Ljava/lang/String;

    move-result-object v1

    goto :goto_1
.end method

.method private static parsePackageNames(Ljava/lang/String;)Ljava/util/List;
    .locals 11
    .parameter "data"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    .prologue
    .line 176
    const-string v6, "[ ,;\\[\\]\t\r\n\"\']"

    invoke-virtual {p0, v6}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v4

    .line 177
    .local v4, splitted:[Ljava/lang/String;
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    .line 178
    .local v3, packageNames:Ljava/util/List;,"Ljava/util/List<Ljava/lang/String;>;"
    move-object v0, v4

    .local v0, arr$:[Ljava/lang/String;
    array-length v2, v0

    .local v2, len$:I
    const/4 v1, 0x0

    .local v1, i$:I
    :goto_0
    if-ge v1, v2, :cond_1

    aget-object v5, v0, v1

    .line 179
    .local v5, str:Ljava/lang/String;
    invoke-virtual {v5}, Ljava/lang/String;->length()I

    move-result v6

    if-eqz v6, :cond_0

    .line 180
    invoke-interface {v3, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 178
    :cond_0
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 183
    .end local v5           #str:Ljava/lang/String;
    :cond_1
    sget-object v6, Lcom/burstly/lib/apptracking/AppTrackingManager;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v7, "InstalledAppTracker"

    const-string v8, "Splitted apps: {0}. Will check their installation state..."

    const/4 v9, 0x1

    new-array v9, v9, [Ljava/lang/Object;

    const/4 v10, 0x0

    aput-object v3, v9, v10

    invoke-virtual {v6, v7, v8, v9}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 184
    return-object v3
.end method


# virtual methods
.method public getPubTargetingStringAsync(Landroid/content/Context;Ljava/lang/String;Lcom/burstly/lib/feature/apptracker/IAppTrackingListener;)Landroid/os/AsyncTask;
    .locals 5
    .parameter "context"
    .parameter "id"
    .parameter "listener"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/lang/String;",
            "Lcom/burstly/lib/feature/apptracker/IAppTrackingListener;",
            ")",
            "Landroid/os/AsyncTask",
            "<",
            "Ljava/lang/Void;",
            "Ljava/lang/Void;",
            "Ljava/lang/Void;",
            ">;"
        }
    .end annotation

    .prologue
    const/4 v4, 0x0

    .line 79
    sget-object v0, Lcom/burstly/lib/apptracking/AppTrackingManager;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v1, "InstalledAppTracker"

    const-string v2, "Starting new app tracking task..."

    new-array v3, v4, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 80
    if-nez p3, :cond_0

    .line 81
    sget-object v0, Lcom/burstly/lib/apptracking/AppTrackingManager;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v1, "InstalledAppTracker"

    const-string v2, "Listener is null. No way to publish results."

    new-array v3, v4, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 82
    const/4 v0, 0x0

    .line 84
    :goto_0
    return-object v0

    :cond_0
    new-instance v0, Lcom/burstly/lib/apptracking/AppTrackingManager$1;

    invoke-direct {v0, p0, p3, p1, p2}, Lcom/burstly/lib/apptracking/AppTrackingManager$1;-><init>(Lcom/burstly/lib/apptracking/AppTrackingManager;Lcom/burstly/lib/feature/apptracker/IAppTrackingListener;Landroid/content/Context;Ljava/lang/String;)V

    new-array v1, v4, [Ljava/lang/Void;

    invoke-virtual {v0, v1}, Lcom/burstly/lib/apptracking/AppTrackingManager$1;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    move-result-object v0

    goto :goto_0
.end method
